<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<link rel="stylesheet" href="<?php echo __PUBLIC__?>/Home/css/Orderdetail.css" />
		<link rel="stylesheet" type="text/css" href="<?php echo __PUBLIC__?>/Home/css/common_header.css"/>
		<link rel="stylesheet" type="text/css" href="<?php echo __PUBLIC__?>/Home/css/common_bottom.css"/>
		<script type="text/javascript" src="<?php echo __PUBLIC__?>/jquery-1.7.2.min.js"></script>
		<title></title>
	</head>
	<body>
		<!--引入公共头部-->
	<!--顶部登陆-->
	<div class="page_top_nav_long">
		<div class="page_top_nav">
			<!--顶部左边-->
			<ul class="page_top_nav_l">
				<li class="s-hw" style="background-image: none;padding-left: 0px;"><a href="index.html" style="padding-left: 0px;">华为官网</a></li>
			</ul>
			<!--顶部右边-->
			<ul class="page_top_nav_r">
				                
				<!--如果有登陆，才显示-->
				<li style="display: list-item;" class="s-user hide" id="login_status">
					<div class="s-dropdown">
						<div class="h">
							<a href="user.html" id="customer_name" rel="nofollow" timetype="timestamp" class="link-user">346269228@qq.com</a>
							 <em class="vip-state" id="vip-info">
								<a href="#" title="VMALL V0会员" id="vip-Active"><i class="icon-vip-level-0"></i>&nbsp;</a>
							</em>
							<s></s>
						</div>
						<div class="b">
							<p><a href="user.html"  id="user-center">我的华为帐号</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href="http://127.0.0.1/testphp/Hdphp-huawei/index.php?m=Home&c=Login&a=out">退出</a></p>
						</div>
					</div>
				</li>
								<li>
					<a href="http://127.0.0.1/testphp/Hdphp-huawei/index.php?m=Home&c=User&a=index" class="page_top_nav_r_a">我的订单</a>
				</li>
			</ul>	
		</div>
	</div>
	<!--顶部登录结束-->
	<!--头部logo开始-->
	<div class="header_long">
		<div class="header">
			<!--logo-->
			<div class="logo">
				<a href="index.html"><img src="http://127.0.0.1/testphp/Hdphp-huawei/Public/Home/images/newLogo.png"/></a>
			</div>
			<!--搜索-->
			<div class="search">
				<div class="form_body">
					<form action="http://127.0.0.1/testphp/Hdphp-huawei/index.php?m=Home&c=Lists&a=search" method="post">
						<input type="text" name="name" id="search_text" value="" placeholder="iphone7"/>
						<input type="submit" value="搜索" id="searcg_botton"/>
					</form>
				</div>
			</div>
			<div class="header_toolbar">
				<div class="header_my_shop">
					<div class="i-mall">
						<div class="h">
							<a href="user.html">我的商城</a>
							<i></i>
							<s></s>
						</div>
					</div>
				</div>
				<div class="header_my_shoppingcar">
					<div class="h" id="header-toolbar-minicart-h">
						<a href="http://127.0.0.1/testphp/Hdphp-huawei/index.php?m=Home&c=Cart&a=index">我的购物车
																	<!--如果购物车里面有数据-->
																	<span><em id="header-cart-total">0</em><b></b></span>
													</a><i></i><s></s><u></u>
					</div>
					<div class="header-toolbar-minicart-content">
												<!--如果购物车是空的-->
					<div class="minicart-pro-empty" id="minicart-pro-empty">
						<span class="icon-minicart">您的购物车是空的，赶紧选购吧！</span>
					</div>
										</div>
				</div>
			</div>
		</div>
	</div>
	<!--头部logo结束-->
	<!--logo下面的导航-->
	<?php 
//	实例化
	$cateModel = new \Home\Common\Model\Category;
//	调用模型里面的方法，得到数组
	$cateData = $cateModel->getCate();
	 ?>
	<div class="navigation_long">
		<div class="navigation">
			<div class="navigation_l">
				<p>全部商品<i></i></p>
				<!--二级菜单-->
				<ul class="category_box_l">
					<?php foreach ($cateData as $second_v){?>
			<li class="category_item">
				<div class="category-info">
					<a href="<?php echo U('Lists/index',array('cid'=>$second_v['cid']))?>" class="category_title"><?php echo $second_v['cname']?></a>
					<?php foreach ($second_v['threeSon'] as $threeSon_v){?>
					<a href="<?php echo U('Lists/index',array('cid'=>$threeSon_v['cid']))?>" class="category_second"><?php echo $threeSon_v['cname']?></a>
					<?php }?>
				</div>
				<!--移入li右侧div-->
				<div class="category-panels">
					<ul class="subcate-list">
						<?php foreach ($second_v['son'] as $son_v){?>
						<li class="subcate-item">
							<a href="/list-75" target="_blank">
								<span><?php echo $son_v['cname']?></span>
							</a>
						</li>
						<?php }?>
					</ul>
				</div>
			</li>
			<?php }?>
		</ul>
		<!--二级菜单结束-->
			</div>
		<!--右侧-->
		<ul class="navigation_r">
			<li style="background: #BA181F;" class="navigation_r_hover">
				<a href="index.php">首页</a>
			</li>
			<?php foreach ($cateData as $nav_v){?>
			<li class="navigation_r_hover">
				<a href="<?php echo U('Lists/index',array('cid'=>$nav_v['cid']))?>" ><?php echo $nav_v['cname']?></a>
			</li>
			<?php }?>
		</ul>	
		</div>
	</div>
	<!--logo下面的导航结束-->
		<!--顶部导航部分-->
		<div class="category">
			<a href="">首页</a>&nbsp;&nbsp;\&nbsp;&nbsp;<a href="">我的商城</a>&nbsp;&nbsp;\&nbsp;&nbsp;我的订单
		</div>
		<!--顶部导航部分结束-->
		<div class="main">
			<div class="left">
				<!-- <a class='title'>我的商城<a> -->
				<h3 class='order_center'>
					<span>订单中心</span>
				</h3>
				<ul class='order_list'>
					<li class='cur'><a href="<?php echo U('index')?>">我的订单</a><em><?php echo $ordernum?></em></li>
				</ul>
				<h3 class='order_center'>
					<span>个人中心</span>
				</h3>
				<ul class='order_list'>
					<li><a href="<?php echo U('address')?>">收货地址管理</a></li>
				</ul>
			</div>
			<!--右边部分-->
			<!--***************************************-->
			<!--<link rel="stylesheet" type="text/css" href="<?php echo __PUBLIC__?>/Bootstrap/Css/bootstrap.min.css"/>-->
			<div class="fr u-4-5"><!-- 20141212-栏目-start -->
<div class="section-header" style="position: relative;">
    <div class="fl">
        <h2><span>订单号：<?php echo $addData['number']?></span></h2>
    </div>
    <div class="fr">
    	<div class="section-header-button">
    		<script type="text/javascript">
    			$(function(){
    				$('.button-operate-cancel-order').click(function(){
    					$('.popup-define-area').show();
    				})
    				$('#ec_ui_confirm_no').click(function(){
    					$('.popup-define-area').hide();
    				})
    			})
    		</script>
    				<?php if($addData['status']=='未支付'){?>
                
					<a class="button-operate-cancel-order" href="javascript:;" title="取消订单">
						<span>取消订单</span>
					</a>
					<a class="button-operate-pay" href="<?php echo U('Order/successOrder',array('oid'=>$addData['oid']))?>" target="_blank">
					<span>立即支付</span>
					</a>
					
               <?php }?>
					<?php if($addData['status']=='已付款'){?>
                
					<a class="button-operate-pay" href="javascript:;">
					<span>提醒发货</span>
					</a>
					
               <?php }?>
					<?php if($addData['status']=='已发货'){?>
                
					<a class="button-operate-pay" href="/payment/order-1730044053" target="_blank">
					<span>确认收货</span>
					</a>
					
               <?php }?>
    	</div>
    </div>
</div>
<!-- 20141212-栏目-end -->
	<!-- 20141223-订单详情-订单状态-start -->
	<?php if(!$addData['status']=='已取消'){?>
                
	<div class="order-detail-state">
		<!-- 20141223-订单进度-start -->
		<style type="text/css">
			.black{
				color: #333;
			}
		</style>
	    <div class="order-state-progress">
	        <ol>
	            <li class="first completed" style="background-image: none;">
	                <s <?php if($addData['status']=='未支付'){?>
                 style="background-position: 6px -39px;" 
               <?php }?>></s>
	                <dl>
	                    <dt <?php if($addData['status']=='未支付'){?>
                 class="black" 
               <?php }?>>提交订单</dt>
	                    <dd>
	                    	<p><?php if($addData['status']=='未支付'){?>
                <?php echo date('Y-m-d H:i:s',time())?> 
               <?php }?></p>
	                    	<p></p>
	                    </dd>
	                </dl>
	            </li>
	            	<li>
		                <s <?php if($addData['status']=='已付款'){?>
                 style="background-position: 6px -39px;" 
               <?php }?>></s>
		                <dl>
		                    <dt <?php if($addData['status']=='已付款'){?>
                 class="black" 
               <?php }?>>付款成功</dt>
		                    <dd>
		                    	<p><?php if($addData['status']=='已付款'){?>
                <?php echo date('Y-m-d H:i:s',time())?> 
               <?php }?></p>
		                    	<p></p>
		                    </dd>
		                </dl>
		            </li>
	            
	            <li>
	                <s <?php if($addData['status']=='已发货'){?>
                 style="background-position: 6px -39px;" 
               <?php }?>></s>
	                <dl>
	                    <dt <?php if($addData['status']=='已发货'){?>
                 class="black" 
               <?php }?>>商品出库</dt>
	                    <dd>
	                    	<p><?php if($addData['status']=='已发货'){?>
                <?php echo date('Y-m-d H:i:s',time())?> 
               <?php }?></p>
	                    	<p></p>
	                    </dd>
	                </dl>
	            </li>
	            <li>
	                <s <?php if($addData['status']=='已完成'){?>
                 style="background-position: 6px -39px;" 
               <?php }?>></s>
	                <dl>
	                    <dt <?php if($addData['status']=='已完成'){?>
                 class="black" 
               <?php }?>>收货并确认</dt>
	                    <dd>
	                    	<p><?php if($addData['status']=='已完成'){?>
                <?php echo date('Y-m-d H:i:s',time())?> 
               <?php }?></p>
	                    	<p></p>
	                    </dd>
	                </dl>
	            </li>
	        </ol>
	    </div>
	    <!-- 20141223-订单进度-end -->
	</div>
	
               <?php }?>
	<!-- 20141223-订单详情-订单状态-end -->	
<div class="hr-50"></div>
<div class="order-detail-receive">
	<div class="h">
		<h3>收货信息</h3>
	</div>
	<div class="b">
		<div class="form-info-panels">
			<table border="0" cellpadding="0" cellspacing="0">
				<tbody>
					<tr>
						<th>姓名：</th>
						<td><?php echo $addData['name']?></td>
					</tr>
					<tr>
						<th>收货地址：</th>
						<td><?php echo $addData['address']?></td>
					</tr>
					<tr>
						<th>联系电话：</th>
						<td><?php echo $addData['phone']?></td>
					</tr>
					<tr>
						<th>配送方式：</th>
						<td>由<?php echo $addData['Courier_name']?>公司配送</td>
					</tr>
		                    <tr>
		                        <th>发票信息：</th>
		                        <td>
		                        	个人
		                        	&nbsp;&nbsp;
		                        </td>
		                    </tr>
				</tbody>
			</table>
		</div>
	</div>
</div>
<!-- 20141223-订单详情-收货信息-end -->
<div class="hr-50"></div>
	<!-- 20141223-订单详情-商品清单-start -->
	<div class="order-detail-pro">
		<!-- 20141223-商品清单-商品列表-start -->
		<div class="order-pro-record">
			<div class="list-group-caption">
				<h3>商品清单</h3>
			</div>
			<div class="list-group-title">
	    		<table border="0" cellpadding="0" cellspacing="0">
	    			<thead>
	    				<tr>
	    					<th class="col-pro">商品名称</th>
	    					<th class="col-int">积分</th>
	    					<th class="col-price">单价/元</th>
	    					<th class="col-quty">数量</th>
	    					<th class="col-pay">小计/元</th>
	    					<th class="col-state">状态</th>
	    				</tr>
	    			</thead>
	    		</table>
	    	</div>
	    	<div class="list-group">
	    		<!-- 组合套餐 -->
		    		<div class="list-group-item">
		    			<?php foreach ($OrderListsData as $lists_v){?>
		    			<div class="o-pro">
		    				<table border="0" cellpadding="0" cellspacing="0">
			        			<tbody>
			        					
				        				<tr>
				        					<td class="col-pro-img">
			        							<p class="p-img">
			        								<a href="/product/2519.html#6479" target="_blank">
														<img src="<?php echo __ROOT__?>/<?php echo $lists_v['lists_pic']?>" width="100px">                                        
													</a>
			        							</p>
				        					</td>
				        					<td class="col-pro-info">
			    								<p class="p-name">
			    									<a title="荣耀畅玩5X 双卡双待 增强全网通版 智能手机（落日金）套餐一" target="_blank" href="/product/2519.html#6479">荣耀畅玩5X 双卡双待 增强全网通版 智能手机（落日金）套餐一</a>
			    								</p>
				        					</td>
				        					<td class="col-int">0</td>
				        					<td class="col-price"><em>¥</em><span>
				        								1799.00
				        					</span></td>
				        					<td class="col-quty">1</td>
				        					<td class="col-pay" rowspan="6"><em>¥</em><span>
				        							1799.00
				        					</span></td>
				        					<td class="col-state">--</td>
				        				</tr>
				        				
			        			</tbody>
			        		</table>
		    			</div>
		    			<?php }?>
		    		</div>
	    	</div>
		</div>
		<!-- 20141223-商品清单-商品列表-end -->
		<!-- 20141223-商品清单-赠品列表-start -->
		<!-- 20141223-商品清单-赠品列表-end -->
		<!-- 20141223-商品清单-合计-start -->
		<div class="order-pro-total">
			<div class="order-pro-cost">
				<table border="0" cellpadding="0" cellspacing="0">
					<tbody>
						<tr>
							<th>商品金额总计：</th>
							<td><em>¥</em><span><?php echo $addData['totalprice']?>.00</span></td>
						</tr>
						<tr>
							<th>
运费：</th>
							<td><em>¥</em><span>0.00</span></td>
						</tr>
						<tr>
							<th>使用优惠券：</th>
							<td><em>-&nbsp;¥</em><span>0.00</span></td>
						</tr>
						<tr>
							<th>使用花瓣：</th>
							<td><em>-&nbsp;¥</em><span>0.00</span></td>
						</tr>
						<tr>
							<th>
&nbsp;商家活动：
							</th>
							<td><em>-&nbsp;¥</em><span>0.00</span></td>
						</tr>
					</tbody>
				</table>
			</div>
			<div class="order-pro-cost-total">合计（含运费）：<em>¥</em><span>
					<?php echo $addData['totalprice']?>.00
				</span></div>
		</div>
		<!-- 20141223-商品清单-合计-end -->
	</div>
	<!-- 20141223-订单详情-商品清单-end -->
			<div class="order-detail-action"> 
				<?php if($addData['status']=='已付款'){?>
                
				<a class="button-operate-pay" href="javascript:;">
				<span>提醒发货</span>
				</a>
				 
               <?php }?>
			</div>
			<!--********************************************-->
		</div>
	<!--商城宣传-->
	<div class="slogan">
		<ul>
			<li style="width: 326px;"><i></i>500强企业 品质保证</li>
			<li style="width: 327px;"><i></i>7天退货 15天换货</li>
			<li><i></i>99元起免运费</li>
			<li style="float: right;"><i></i>448家维修网点 全国联保</li>
		</ul>
	</div>
<!--服务-->
<!--确认删除   开始-->
			<div style="top: 107.5px; left: 739.5px; position: absolute; display: none;" id="ec_ui_confirm" class="popup-area popup-define-area hide">
			    <div class="b">
			        <p id="ec_ui_confirm_msg">您确认要取消该订单吗？</p>
			        <div class="popup-button-area">
			        	<a id="ec_ui_confirm_yes" href="<?php echo U('User/delOrders',array('oid'=>Q('get.oid',0,'intval')))?>" class="button-action-yes" title="是"><span>是</span></a>
			        	<a id="ec_ui_confirm_no" href="javascript:;" class="button-action-no" title="否"><span>否</span></a></div>
			    </div>
			    <div class="f"><s class="icon-arrow-down"></s></div>
			</div>
			<!--确认删除结束-->
	<!--底部友情链接-->
	<div class="footer">
		<div class="footer-otherLink">
		</div>
		<div class="footer-warrant-area">
			<p>Copyright © 2011-2015  华为软件技术有限公司  版权所有  保留一切权利  苏B2-20130048号 | 苏ICP备09062682号-9</p>
			<p><a href="">网络文化经营许可证苏网文[2012]0401-019号</a></p>
			<p class="footer-warrant-img">
				<a href=""><img src="<?php echo __PUBLIC__?>/Home/images/certificate_01_112_40.png" alt="" /></a>
				<a href=""><img src="<?php echo __PUBLIC__?>/Home/images/certificate_02_112_40.png" alt="" /></a>
				<a href=""><img src="<?php echo __PUBLIC__?>/Home/images/certificate_03_112_40.png" alt="" /></a>
			</p>
		</div>
	</div>		
	</body>
</html>
